package org.tao.lightningmq.common.dto;

public class BrokerMasterChangeReqDTO extends BaseBrokerRemoteDTO {

    private String newMasterNodeAddr;

    private String oldMasterNodeAddr;

    public BrokerMasterChangeReqDTO() {
    }

    public BrokerMasterChangeReqDTO(String newMasterNodeAddr, String oldMasterNodeAddr) {
        this.newMasterNodeAddr = newMasterNodeAddr;
        this.oldMasterNodeAddr = oldMasterNodeAddr;
    }

    public String getNewMasterNodeAddr() {
        return newMasterNodeAddr;
    }

    public void setNewMasterNodeAddr(String newMasterNodeAddr) {
        this.newMasterNodeAddr = newMasterNodeAddr;
    }

    public String getOldMasterNodeAddr() {
        return oldMasterNodeAddr;
    }

    public void setOldMasterNodeAddr(String oldMasterNodeAddr) {
        this.oldMasterNodeAddr = oldMasterNodeAddr;
    }

    @Override
    public String toString() {
        return "BrokerMasterChangeReqDTO{" +
                "newMasterNodeAddr='" + newMasterNodeAddr + '\'' +
                ", oldMasterNodeAddr='" + oldMasterNodeAddr + '\'' +
                '}';
    }
}
